package com.guoxue.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.guoxue.dao.IDistrictDao;
import com.guoxue.domain.DistrictVo;
import com.guoxue.service.IDistrictService;
@Service("districtService")
public class DistrictServiceImpl implements IDistrictService {
	
	@Resource
	private IDistrictDao districtDao;
	
	@Override
	public void saveDistrict(DistrictVo dt) {
		districtDao.saveDistrict(dt);
	}

	@Override
	public List<DistrictVo> getDistrictList() {
		return districtDao.getDistrictList();
	}

	@Override
	public void deleteDistrict(int id) {
		districtDao.deleteDistrict(id);
	}

	@Override
	public DistrictVo getDistrictByKey(int district) {
		return districtDao.getDistrictByKey(district);
	}

	@Override
	public List<DistrictVo> getSchoolList(String city, String province, String county) {
		return districtDao.getSchoolList(city,province,county);
	}

	@Override
	public DistrictVo searchDistrict(String[] dis) {
		return districtDao.searchDistrict(dis);
	}

}
